<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

<f:view>
<html>
<body>
<center>
<h1>Java Learning Center</h1>
<h3>Managed Bean Demo</h3>
<h:form>
<h:panelGrid columns="3">
<h:outputText value="First Name"/>
<h:inputText id="fname" value="#{studentBean.firstname}" required="true"/>
<h:message for="fname"/>

<h:outputText value="Last Name"/>
<h:inputSecret id="lname" value="#{studentBean.lastname}" required="true"/>
<h:message for="lname"/>


<h:commandButton value="Show" action="#{studentBean.show}"/>

</h:panelGrid>
</h:form>
</center>
</body>
</html>
</f:view>